package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

import com.ruicar.afs.cloud.common.core.enums.AfsBaseEnum;
import com.ruicar.afs.cloud.common.core.enums.annotations.AfsEnum;

/**
 * @param
 * @author yk.Li
 * @description 挂靠方式枚举
 * @date 2020/7/10
 */
public enum AffiliatedWayEnum implements AfsBaseEnum {

    @AfsEnum(key = "00", desc = "无", mapping = {"afs-case=00", "afs-contract=NO"})
    NO("00", "无"),
    @AfsEnum(key = "01", desc = "第三方公司挂靠", mapping = {"afs-case=01", "afs-contract=COMPANY_AFFILIATED"})
    COMPANY_AFFILIATED("01", "第三方公司挂靠"),
    @AfsEnum(key = "02", desc = "个体工商挂靠", mapping = {"afs-case=02", "afs-contract=PERSONAL_AFFILIATED"})
    PERSONAL_AFFILIATED("02", "个体工商挂靠"),
    @AfsEnum(key = "03", desc = "网约车挂靠", mapping = {"afs-case=03", "afs-contract=NETWORK_CAR_AFFILIATED"})
    NETWORK_CAR_AFFILIATED("03", "网约车挂靠");

    AffiliatedWayEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String code;
    private String desc;

    public String getCode() {
        return code;
    }
}
